import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore("counter", () => {
  const lyList = ref([
    {id:1,title:'系统管理',children:[
      {id:0,title:'用户管理',path:'/system/yhgl'},
      {id:1,title:'角色管理',path:'/system/jsgl'},
      {id:2,title:'菜单管理',path:'/system/cdgl'},
      {id:3,title:'部门管理',path:'/system/bmgl'},
      {id:4,title:'字典管理',path:'/system/zdgl'}
    ]},
    {id:2,title:'接口文档',children:[
      {id:0,title:'Apifox',path:'/api/apifox'}
    ]},
    {id:3,title:'平台文档',children:[
      {id:0,title:'平台文档(内嵌)',path:'/doc/ptOne'},
      {id:1,title:'平台文档(外链)',path:'/doc/ptTwo'}
    ]},
    {id:4,title:'多级菜单',children:[
      {id:0,title:'菜单一级',path:'/multi-level/cdyj'}
    ]},
    {id:5,title:'组件封装',children:[
      {id:0,title:'增删改查',path:'/component/zsgc'},
      {id:1,title:'列表选择器',path:'/component/lb'},
      {id:2,title:'富文本编辑器',path:'/component/fwb'},
      {id:3,title:'图片上传',path:'/component/imgs'},
      {id:4,title:'图标选择器',path:'/component/icons'},
      {id:5,title:'字典组件',path:'/component/zdzj'}
    ]},
    {id:6,title:'路由参数',children:[
      {id:1,title:'参数(type=1)',path:'/route-param/lyOne'},
      {id:2,title:'参数(type=2)',path:'/route-param/lyTwo'},
    ]},
    {id:7,title:'功能演示',children:[
      {id:1,title:'Icons',path:'/function/iconse'},
      {id:2,title:'WebSocket',path:'/function/web'},
      {id:3,title:'敬请期待...',path:'/function/jqqd'},
    ]},
  ])

  return { lyList };
});
